CFLAGS = -Wall -g
ASMFLAGS = -f coff
LIBFLAGS = -L. -lpang -lm

all: exe

rebuild: clean exe

exe: main.o game.o setup.o libpang.a Makefile
	gcc $(CFLAGS) main.o game.o setup.o $(LIBFLAGS) -o pang 
	
main.o: setup.h Makefile
	gcc $(CFLAGS) -c main.c
	
setup.o: setup.h Makefile
	gcc $(CFLAGS) -c setup.c

game.o: game.h xpm.h Makefile
	gcc $(CFLAGS) -c game.c
	
clean:
	del *.o
	del pang*